import java.util.Scanner;

class Cat {
    private int hunger;
    private int happiness;
    private int health;
    private int litterCleanliness;

    public Cat() {
        this.hunger = 50;
        this.happiness = 60;
        this.health = 80;
        this.litterCleanliness = 50;
    }

    public void feed() {
        hunger = Math.max(0, hunger - 20);
        health = Math.min(100, health + 5);
        System.out.println("喂食成功！");
    }

    public void play() {
        hunger = Math.min(100, hunger + 15);
        happiness = Math.min(100, happiness + 25);
        System.out.println("玩得很开心！");
    }

    public void cleanLitter() {
        litterCleanliness = Math.min(100, litterCleanliness + 40);
        System.out.println("猫砂清理完成！");
    }

    public void showStatus() {
        System.out.println("\n=== 猫咪状态 ===");
        System.out.println("饥饿度: " + hunger + "%");
        System.out.println("快乐度: " + happiness + "%");
        System.out.println("健康度: " + health + "%");
        System.out.println("猫砂清洁度: " + litterCleanliness + "%");
    }
}

public class CatPetGame {
    private Cat cat;
    private Scanner scanner;

    public CatPetGame() {
        cat = new Cat();
        scanner = new Scanner(System.in);
    }

    public void startGame() {
        boolean running = true;

            int choice = scanner.nextInt();
            switch (choice) {
                case 1:
                    cat.feed();
                    break;
                case 2:
                    cat.play();
                    break;
                case 3:
                    cat.cleanLitter();
                    break;
                case 4:
                    cat.showStatus();
                    break;
                case 5:
                    running = false;
                    break;
                default:
                    System.out.println("无效选项！");
            }
                cat.showStatus();

        scanner.close();
    }

    private void showMenu() {
        System.out.println("\n请选择操作：");
        System.out.println("1. 喂食");
        System.out.println("2. 玩耍");
        System.out.println("3. 清理猫砂");
        System.out.println("4. 查看状态");
        System.out.println("5. 退出");
        System.out.print("请输入选项：");
    }

    public static void main(String[] args) {
        CatPetGame game = new CatPetGame();
        game.startGame();
    }
}